package org.jeecg.modules.hotel.checkmix.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import  org.jeecg.modules.hotel.checkmix.entity.TestB;
import org.jeecg.modules.hotel.checkmix.entity.Repeat;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 重复住宿校验
 * @Author: jeecg-boot
 * @Date:   2021-04-26
 * @Version: V1.0
 */
public interface IcheckmixService extends IService<Repeat> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(Repeat check, List<TestB> testBList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(Repeat check, List<TestB> testBList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	/**
	 * 查询一对多
	 *
	 */
	//IPage<Repeat> checkcwList(Page<Repeat> page, QueryWrapper<Repeat> queryWrapper,List<Repeat> repeatList);
	/**
	 * 查询混合住宿的房间
	 *
	 */
	IPage<Repeat> checkRepeatCw(Page<Repeat> page, QueryWrapper<Repeat> queryWrapper);

	/**
	 * 导出用的
	 *
	 */
	List<Repeat> checkRepeatCwList(QueryWrapper<Repeat> queryWrapper);

}
